import React,{useEffect,useState} from 'react';
import { notice } from '../../api/Cms';
import './Notice.scss';
export default function Notice(){
    const [noticeData,changeNotice]=useState([]);
    useEffect(()=>{
        notice().then((res)=>{
            changeNotice(res.data)
        })
    },[])
    return (
        <div className="notice-container">
            <img src={require('../../static/images/msg.svg')}/>
            <div className="header-notice-marquee">
                <span  className="header-marquee-item">{ noticeData.title}</span> 
            </div>
        </div>
    )
} 